package com.caikun.service_management.service;

import com.caikun.model.entity.ServiceEntity;
import com.caikun.model.vo.PackageVO;

import java.util.List;

public interface ServiceService {
    /**
     * 查询服务列表并根据serviceName模糊查询
     * @param serviceName
     * @return
     */
    List<ServiceEntity> listServices(String serviceName);

    /**
     * 添加服务
     * @param serviceEntity
     * @return
     */
    ServiceEntity addService(ServiceEntity serviceEntity);

    /**
     * 修改服务
     * @param serviceEntity
     * @return
     */
    Boolean updateService(ServiceEntity serviceEntity);

    /**
     * 删除服务
     * @param serviceId
     * @return
     */
    Boolean deleteService(Integer serviceId);

    List<ServiceEntity> queryAllService();

    List<PackageVO> queryAllPackageWithServices();
} 